import Calendar from './calender/index.jsx'
//通过defaultValue来传入初始值date
//修改date之后可以在onChange里拿到最新的值 ---非受控
function App() {
  return (
      <Calendar 
      defaultDate={new Date()} 
      onChange={(newDate)=>{
        alert(newDate.toLocaleDateString())
      }} 
      />
  );
}
export default App